//new 表示
//动态内存
#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
    /* 定义一个pint指针， 用来存储整形的内存地址*/
    //请求为一个整形分配内存地址
    int *pint = new int;
    cout << "Please enter an interger" << endl;
    //将值赋给指针变量
    cin >> *pint;
    cout << "Memeory address is:" << pint << endl;
    cout << *pint << endl;
    delete pint;
    return 0;
}
